package com.jd.jr.model;


public enum RefType {
	Manual( 10),
	OnlinePay( 11),
	POS( 12),
	;
	private final int value;

	private RefType(int value) {
		this.value = value;
	}

	public Integer value() {
		return value;
	}

	public String toString() {
		return name() + "," + value();
	}

	public static RefType of(final Integer value) {
		switch (value) {
		case 10:
			return Manual;
		case 11:
			return OnlinePay;
		case 12:
			return POS;	
		
		}
		return null;		
	}
}
